<template>
	<view class="tatol">
		<!--在贩日历页第一部分-->
		<view class="firstpage">
			<view class="mainTITLE">
				<view class="title">Last</view>
				<view class="title">ThisWeek</view>
				<view class="title">Next</view>
				<view class="title add">Add</view>
				<view class="title delete">Delete</view>
			</view>
			<view class="weekCALENDER" >
				<view class="weekDATE" v-for="(item,index) in dates">
					<view class="week">{{item.week}}</view>
					<view class="date">{{item.date}}</view>
				</view>
			</view>
			
		</view>
		
		<!--在贩日历页第二部分-->
		<view class="secondpage">
			<view class="secondTITLE">
				<view class="sentence">Data statistics of</view>
				<view class="number">2024-10-10</view></view>
			<view class="datas">9</view>
			<view class="datas bebooked">3</view>
			<view class="datas">6</view>
			<view class="datas">33%</view>
			<view class="discribe">Total</view>
			<view class="discribe">BeBooked</view>
			<view class="discribe">Empty</view>
			<view class="discribe">BookRate</view>
		</view>
		
		<!--在贩日历页第三部分-->
		<view class="catalog" v-for="(item,index) in times">
			<view class="timeWAY">
				<view class="time">{{item.time}}</view>
				<view class=way>online</view>
			</view>
			<view class="teacherNAME">{{item.name}}</view>
			<view class="details">details</view>
		</view>
		
			
		
	</view>
</template>

<script>
	 
	export default {
		 
		data() {
			return{
				times:[],
				dates:[],
				e:[{},{}]
						 
			}
			
		},
		watch: {
		 
		},
		onPageScroll(e) {
			 
		},
		onLoad(e) {
			this.ltimes();
			this.ldates();
			// 获取邀请码保存到本地
			 
		},
		//下拉刷新
		onPullDownRefresh() {
		 
		},
		//加载更多
		onReachBottom() {
		 
		},
		onHide() {
			//离开页面时关闭吸顶功能,用于处理h5环境运行下'bottom' of null报错的问题
			this.enable = false
		},
		onShow() {
			this.times();
		},
		methods: {
			ltimes(){
				let rs=[
					{
						time:"19:30",
						name:"lucas",
					},
					{
						time:"20:00",
						name:"lucas",
					},
					{
						time:'20:30',
						name:"lucas",
					},
					{
						time:"21:00",
						name:"lucas",
					},
					{
						time:"21:30",
						name:"lucas",
					},
				];
				this.times=rs;
			},
			ldates(){
				let re=[
					{
						week:"Mon",
						date:"10-7",
					},
					{
						week:"Tue",
						date:"10-8",
					},
					{
						week:"Wed",
						date:"10-9",
					},
					{
						week:"Thu",
						date:"10-10",
					},
					{
						week:"Fri",
						date:"10-11",
					},
					{
						week:"Sat",
						date:"10-12",
					},
					{
						week:"Sun",
						date:"10-13",
					},
				];
				this.dates = re;
			},
			 

		}
	}
</script>

<style lang="scss">
	page {
		background: #F2F2F7;
	}
	
	.tatol{
		border: #00c15f 4rpx solid;
	}
	
	.firstpage{
		background-color: #ffffff;
		margin: 0rpx 0rpx 20rpx 0rpx;
		height: 200rpx;
	}
	
	.mainTITLE{
		display: flex;
		text-align: center;
		flex-flow: row nowrap;
		width: 100%;
	}
	
	.title{
		width: 20%;
		line-height: 80rpx;
		font-size: 30rpx;
		background-color: #F2F2F7;
		border-right: 3rpx solid #ffffff;
	}
	
	.add{
		background-color: #338aff;
		color: #ffffff;
	}
	
	.delete{
		background-color: #fa5151;
		color: #ffffff;
		border-right: 0rpx;
	}
	
	.weekCALENDER{
		display: flex;
		text-align: center;
		flex-flow: row wrap;
		width: 100%;	
	}
	
	.weekDATE{
		width: 14%;
		height: 100rpx;
		line-height: 50rpx;
		font-weight: bold;
		margin-top: 10rpx;	
	}
	
	.thuDATA{
		background-color: #00c15f;
		color: #ffffff;
		border-radius: 10rpx;
	}
	
	.week{
		border: 0rpx solid red;
		height: 50rpx;
	}
	
	.date{
		border: 0rpx solid red;
		height: 50rpx;
	}
	
	
	.secondpage{
		margin: 20rpx 25rpx;
		background-color: #ffffff;
		height: 170rpx;
	}
	
	.secondTITLE{
		padding-top: 20rpx;
		font-size: 30rpx;
		text-align: center;
	}
	
	.sentence{
		border: 0rpx solid red;
		float: left;
		text-align: right;
		width: 380rpx;
		padding-right: 15rpx;
	}
	
	.number{
		border: 0rpx solid red;
		font-weight: bold;
		text-align: left;
	}
	
	.datas{
		float: left;
		width: 25%;
		text-align: center;
		font-size: 35rpx;
		font-weight: bold;
		margin-top: 20rpx;
	}
	
	.discribe{
		float: left;
		width: 25%;
		text-align: center;
		font-size: 30rpx;
		margin-top: 10rpx;
	}
	
	.bebooked{
		color: #fa5151;
	}
	
	.catalog{
		margin: 15rpx 0rpx;
		height: 140rpx;
		background-color: #ffffff;
	}
	
	.timeWAY{
		border: 0rpx solid red;
		float: left;
		padding: 20rpx;
	}
	
	.time{
		border: 0rpx solid red;
		font-size: 40rpx;
		font-weight: bold;
		margin-bottom: 15rpx;
	}
	
	.way{
		border: 0rpx solid red;
		font-size: 25rpx;
		color: #00c15f;
		text-align: center;
	}
	
	.teacherNAME{
		border: 0rpx solid red;
		float: left;
		font-size: 30rpx;
		margin-left: 10rpx;
		margin-top: 55rpx;
	}
	
	.details{
		border: 0rpx solid red;
		float: right;
		background-color: #00c15f;
		color: #ffffff;
		width: 130rpx;
		height: 60rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-right: 20rpx;
		margin-top: 40rpx;
		border-radius: 10rpx;
	}
	
	
	
	
 
</style>